package com.smart.business.controller;

import com.smart.entity.system.DictEntity;
import com.smart.model.response.r.Result;
import com.smart.service.business.LocalDictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/business/dict")
public class LocalDictController {
   @Autowired
   private LocalDictService dictService;

    /**
     * 根据倒数第二层的层级点位的 id 获取最底层的层级点位
     *
     * @param id 倒数第二层的层级点位的 id
     * @return String
     */
    @GetMapping("/getBottomLevelPoints")
    public String getBottomLevelPoints(@RequestParam String id) {
        return Result.data(dictService.getBottomLevelPoints(id));
    }


}


